package org.wggds.webservices.io.data;

import org.wggds.webservices.io.WggdsQueryExcpetion;

public enum CompleteInformation 
{
    Complete ("full"),
    ID ("ids"),
    None ("none");
    public String getName()
    {
        return this.m_name;
    }

    private String m_name = null;

    private CompleteInformation(String a_name)
    {
        this.m_name = a_name;
    }

    public static CompleteInformation forName( String a_name) throws WggdsQueryExcpetion
    {
        for ( CompleteInformation a : CompleteInformation.values() )
        {
            if ( a_name.equalsIgnoreCase(a.m_name) )
            {
                return a;
            }
        }
        throw new WggdsQueryExcpetion("Unknown Information string: " + a_name.toString());
    }
}
